namespace STOWaybillMall.Core
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using TongTongMall.Domain.Repositories.Attributes;

    [Table("OnlinePaymentOrderInfo")]
    public partial class OnlinePaymentOrderInfo
    {
        [Identify]
        public Guid OnlinePaymentID { get; set; }

        [Required]
        [StringLength(64)]
        public string PayNo { get; set; }

        [Required]
        public string PayParamHash { get; set; }

        [StringLength(64)]
        public string TradeNo { get; set; }

        public string RawData { get; set; }

        public byte PayServicePlatform { get; set; }

        public byte PayLaunchPlatform { get; set; }

        [Required]
        [StringLength(64)]
        public string PayBusinessID { get; set; }

        public DateTime CreationTime { get; set; }

        public DateTime? LastModificationTime { get; set; }

        [StringLength(64)]
        public string PlatformAppId { get; set; }

        public int TotalFee { get; set; }

        public long UserID { get; set; }

        [Required]
        [StringLength(200)]
        public string PayTitle { get; set; }

        [StringLength(500)]
        public string PayDescription { get; set; }

        public byte FeeType { get; set; }

        public byte PayStatus { get; set; }

        [StringLength(32)]
        public string ResultCode { get; set; }

        [StringLength(200)]
        public string ResultErrMsg { get; set; }
    }
}
